package com.ld.manageBook.service.impl;

import com.ld.manageBook.DAO.ReturnDAO;
import com.ld.manageBook.service.ReturnService;

import java.sql.Date;

public class ReturnServiceImpl implements ReturnService {
	private ReturnDAO returnDAO = new ReturnDAO();
	@Override
	public int returnBook(String userName, Integer bookId, Date time,Integer number) {
		return returnDAO.update("insert into `return`(`user_name`,`book_id`,`time`,`number`) values(?,?,?,?)",userName,bookId,time,number);
	}
}
